package scauCmiScaffolding.compiled;

import org.eclipse.jet.JET2Context;
import org.eclipse.jet.JET2Template;
import org.eclipse.jet.JET2Writer;
import org.eclipse.jet.taglib.RuntimeTagElement;
import org.eclipse.jet.taglib.TagInfo;

public class _jet_detailjs implements JET2Template {
    private static final String _jetns_c = "org.eclipse.jet.controlTags"; //$NON-NLS-1$

    public _jet_detailjs() {
        super();
    }

    private static final String NL = System.getProperty("line.separator"); //$NON-NLS-1$
    
    private static final TagInfo _td_c_get_3_5 = new TagInfo("c:get", //$NON-NLS-1$
            3, 5,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_8_7 = new TagInfo("c:get", //$NON-NLS-1$
            8, 7,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_8_78 = new TagInfo("c:get", //$NON-NLS-1$
            8, 78,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_11_7 = new TagInfo("c:get", //$NON-NLS-1$
            11, 7,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_14_20 = new TagInfo("c:get", //$NON-NLS-1$
            14, 20,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_14_75 = new TagInfo("c:get", //$NON-NLS-1$
            14, 75,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_14_126 = new TagInfo("c:get", //$NON-NLS-1$
            14, 126,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_14_206 = new TagInfo("c:get", //$NON-NLS-1$
            14, 206,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );

    public void generate(final JET2Context context, final JET2Writer __out) {
        JET2Writer out = __out;
        out.write("Page({");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("  data: {");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("    ");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_3_5 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_3_5); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_3_5.setRuntimeParent(null);
        _jettag_c_get_3_5.setTagInfo(_td_c_get_3_5);
        _jettag_c_get_3_5.doStart(context, out);
        _jettag_c_get_3_5.doEnd();
        out.write(": {}");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("  },");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("  onLoad: function (options) {");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("    var that = this");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("    that.setData({");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("      ");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_8_7 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_8_7); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_8_7.setRuntimeParent(null);
        _jettag_c_get_8_7.setTagInfo(_td_c_get_8_7);
        _jettag_c_get_8_7.doStart(context, out);
        _jettag_c_get_8_7.doEnd();
        out.write(": JSON.parse(options.");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_8_78 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_8_78); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_8_78.setRuntimeParent(null);
        _jettag_c_get_8_78.setTagInfo(_td_c_get_8_78);
        _jettag_c_get_8_78.doStart(context, out);
        _jettag_c_get_8_78.doEnd();
        out.write(")");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("    })");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("  },");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("  edit");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_11_7 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_11_7); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_11_7.setRuntimeParent(null);
        _jettag_c_get_11_7.setTagInfo(_td_c_get_11_7);
        _jettag_c_get_11_7.doStart(context, out);
        _jettag_c_get_11_7.doEnd();
        out.write(": function () {");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("    var that = this");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("    wx.navigateTo({");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("      url: '../edit");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_14_20 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_14_20); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_14_20.setRuntimeParent(null);
        _jettag_c_get_14_20.setTagInfo(_td_c_get_14_20);
        _jettag_c_get_14_20.doStart(context, out);
        _jettag_c_get_14_20.doEnd();
        out.write("/edit");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_14_75 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_14_75); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_14_75.setRuntimeParent(null);
        _jettag_c_get_14_75.setTagInfo(_td_c_get_14_75);
        _jettag_c_get_14_75.doStart(context, out);
        _jettag_c_get_14_75.doEnd();
        out.write("?");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_14_126 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_14_126); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_14_126.setRuntimeParent(null);
        _jettag_c_get_14_126.setTagInfo(_td_c_get_14_126);
        _jettag_c_get_14_126.doStart(context, out);
        _jettag_c_get_14_126.doEnd();
        out.write("=' + JSON.stringify(that.data.");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_14_206 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_14_206); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_14_206.setRuntimeParent(null);
        _jettag_c_get_14_206.setTagInfo(_td_c_get_14_206);
        _jettag_c_get_14_206.doStart(context, out);
        _jettag_c_get_14_206.doEnd();
        out.write("),");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("    })");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("  }");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("})");  //$NON-NLS-1$        
    }
}
